package youcaihuaoa.weetop.com.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.robot.base.model.CustomListItemBean
import com.robot.base.utils.pic.ImageLoaderUtils
import youcaihuaoa.weetop.com.R

class MyApplyAdapter : BaseQuickAdapter<CustomListItemBean, BaseViewHolder>(
    R.layout.app_item_my_apply
) {
    override fun convert(holder: BaseViewHolder, item: CustomListItemBean) {
        holder.setText(R.id.tv_menu, item.title)
        ImageLoaderUtils.displayCircle(
            context,
            holder.getView(R.id.iv_menu),
            item.icon ?: R.mipmap.ic_menu_kq
        )
    }
}